Skip to content

[ERROR] Error parsing file plain files: Invalid record: 'Attribute line not found' TN: #1327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AadityaDhingra opened this issue Apr 11, 2025 · 5 comments

Comments

@AadityaDhingra
Copy link
Contributor

AadityaDhingra commented Apr 11, 2025

Getting this error when parsing kotlin jacoco files:

17:04:23 [ERROR] Error parsing file plain files: Invalid record: 'Attribute line not found'
TN:

Command used: grcov /Users/adhingra/mozilla-unified-2/mobile/android/android-components/build/reports/jacoco/aggregate/browser-engine-gecko-Debug-TestReport.xml -t lcov

@jasongilanfarr is this something you noticed too?

@marco-c
Copy link
Collaborator

marco-c commented Apr 14, 2025

@AadityaDhingra could you attach the XML file here? Possibly it would help if you could reduce it by removing parts of it to get the minimum possible reproducible case

@AadityaDhingra
Copy link
Contributor Author

@marco-c Error seems to come from here:

<class name="mozilla/components/browser/engine/gecko/cookiebanners/ReportSiteDomainsRepository$isSiteDomainReported$$inlined$map$1$2$1">
         <method name="&lt;init&gt;" desc="(Lmozilla/components/browser/engine/gecko/cookiebanners/ReportSiteDomainsRepository$isSiteDomainReported$$inlined$map$1$2;Lkotlin/coroutines/Continuation;)V">
            <counter type="INSTRUCTION" missed="0" covered="7" />
            <counter type="COMPLEXITY" missed="0" covered="1" />
            <counter type="METHOD" missed="0" covered="1" />
         </method>
         <method name="invokeSuspend" desc="(Ljava/lang/Object;)Ljava/lang/Object;">
            <counter type="INSTRUCTION" missed="16" covered="0" />
            <counter type="COMPLEXITY" missed="1" covered="0" />
            <counter type="METHOD" missed="1" covered="0" />
         </method>
         <counter type="INSTRUCTION" missed="16" covered="7" />
         <counter type="COMPLEXITY" missed="1" covered="1" />
         <counter type="METHOD" missed="1" covered="1" />
         <counter type="CLASS" missed="0" covered="1" />
      </class>

specifically when method tag doesn't have line attribute.

SearchFox link to file if needed

@jasongilanfarr
Copy link
Contributor

jasongilanfarr commented Apr 14, 2025 via email

@AadityaDhingra
Copy link
Contributor Author

Something like #1332 ?

@jasongilanfarr
Copy link
Contributor

jasongilanfarr commented Apr 15, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants